import request from '@/utils/request'

//分页+条件查询
export function searchPage(data) {
  return request({
    url: '/brand/page',
    method: 'post',
    data
  })
}

//添加
export function save(data) {
  return request({
    url: '/brand/add',
    method: 'post',
    data
  })
}

//修改
export function updateBrand(data) {
  return request({
    url: '/brand/update',
    method: 'post',
    data
  })
}

//删除
export function delBrand(brandId) {
  return request({
    url: `/brand/${brandId}`,
    method: 'get',
  })
}

//批量删除
export function delMore(data) {
  return request({
    url: `/brand/delMore`,
    method: 'delete',
    data
  })
}

//查询所有的品牌列表
export function findBrandAll() {
  return request({
    url: '/brand/findAll',
    method: 'get',
  })
}



